# -*- coding: utf-8 -*-
# @Time    : 2020-10-22 10:50
# @Author  : Daniel

from tkinter import *
import time


def get_time():
    time_str = time.strftime("%H:%M:%S")
    lb.configure(text=time_str)
    root.after(1000, get_time)


root = Tk()
root.title('时钟')

lb = Label(root, text='', fg='blue', font=("黑体", 80))

lb.pack()

get_time()

root.mainloop()
